.class Lcom/waiqin365/lightapp/product/view/c;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/product/view/CountView;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/product/view/CountView;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onClick(Landroid/view/View;)V
    .locals 4

    iget-object v0, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/product/view/CountView;->c()Ljava/lang/Double;

    move-result-object v0

    const-wide/16 v2, 0x0

    invoke-static {v0, v2, v3}, Lcom/fiberhome/gaea/client/d/k;->a(Ljava/lang/Double;D)D

    move-result-wide v0

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/view/CountView;->g(Lcom/waiqin365/lightapp/product/view/CountView;)D

    move-result-wide v2

    add-double/2addr v0, v2

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/view/CountView;->e(Lcom/waiqin365/lightapp/product/view/CountView;)D

    move-result-wide v2

    cmpg-double v2, v0, v2

    if-gez v2, :cond_0

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v0, v1}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string/jumbo v1, ""

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v2, v0}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    :goto_0
    return-void

    :cond_0
    iget-object v0, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    iget-object v2, p0, Lcom/waiqin365/lightapp/product/view/c;->a:Lcom/waiqin365/lightapp/product/view/CountView;

    invoke-static {v2}, Lcom/waiqin365/lightapp/product/view/CountView;->e(Lcom/waiqin365/lightapp/product/view/CountView;)D

    move-result-wide v2

    invoke-virtual {v1, v2, v3}, Ljava/lang/StringBuilder;->append(D)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string/jumbo v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lcom/waiqin365/lightapp/product/view/CountView;->setCount(Ljava/lang/String;)V

    goto :goto_0
.end method
